package io.jft.doll.api

import com.g.base.api.BaseResult
import com.google.gson.JsonObject
import io.jft.doll.room.entity.remote.DollDetailREntity
import io.jft.doll.room.entity.remote.OwnDollREntity
import io.reactivex.Observable
import retrofit2.http.Body
import retrofit2.http.POST

/**
 * Created by G on 2017/12/5 0005.
 */
interface DollApi {
    /**查看别拥有的娃娃**/
    @POST("wawa/userWawaList")
    fun getPersonDoll(@Body jsonObject: JsonObject): Observable<BaseResult<OwnDollREntity?>>

    /**
     * 自己拥有的娃娃
     */
    @POST("person/userWawaList")
    fun getSelfDoll(@Body jsonObject: JsonObject): Observable<BaseResult<OwnDollREntity?>>

    /**
     * 娃娃详情
     */
    @POST("person/myWawaDetail")
    fun getDollDetail(@Body jsonObject: JsonObject): Observable<BaseResult<DollDetailREntity?>>

    /**
     * 娃娃详情
     */
    @POST("person/exchange")
    fun dollToCoin(@Body jsonObject: JsonObject): Observable<BaseResult<DollDetailREntity?>>
}